package com.wodsy.phoenix.datadao.${moduleName}.dao.impl;

import com.wodsy.phoenix.datadao.base.BaseHibernateDao;
import com.wodsy.phoenix.datadao.${moduleName}.dao.${daoClassPrefix}Dao;
import com.wodsy.phoenix.dataobject.base.Pager;
import com.wodsy.phoenix.dataobject.${moduleName}.model.UserBasic;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.Map;


@Repository("${daoRepositoryName}Dao")
public class ${daoClassPrefix}DaoImpl extends BaseHibernateDao<${pojoClassName},${pojoClassIDType}> implements ${daoClassPrefix}Dao {

	@Override
	public Class<${pojoClassName}> getModelClass() {
    	return ${pojoClassName}.class;
    }


    @Override
    @Autowired
    @Qualifier(value="${moduleName}")
    public void setSessionFactory(SessionFactory sessionFactory) {
    	this.sessionFactory = sessionFactory;
    }

    }
